package cn.agiledata.bank.common.util;

import java.util.ArrayList;
import java.util.List;

import cn.agiledata.bank.common.bean.SelectBean;
import cn.agiledata.bank.common.servlet.InitForString;

public class SelectUtil implements Constant {
	public static List renderDbSelectBean() {
		List list = new ArrayList();
		list.add(new SelectBean("","--------请选择--------"));
		list.add(new SelectBean("Account","Account表"));
		list.add(new SelectBean("AccountBalance","AccountBalance表"));
		list.add(new SelectBean("Transaction","Transaction表"));	
		return list;
	}
	public static List renderResultTypeSelectBean() {
		List list = new ArrayList();
		list.add(new SelectBean("","--------请选择--------"));
		list.add(new SelectBean(ENCRCODEEMPTY_ERROR_CODE,ENCRCODEEMPTY_ERROR));	//检验码为空
		list.add(new SelectBean(ENCRCODEERROR_CODE,ENCRCODEERROR));	//数据被篡改
		list.add(new SelectBean(ENCRCODECORRECT_CODE,ENCRCODECORRECT));	//数据正确
		return list;		
	}
	
	public List getCityList(String provinceId){
		return (List)InitForString.dataDictMap.get(provinceId);
	}
}
